<template>
  <el-container>
    <el-header>
      <Header></Header>
    </el-header>
    <el-container>
      <el-aside :width="this.$store.state.isCollapse?'70px':'200px'">
        <Aside></Aside>
      </el-aside>
      <el-container>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </el-container>
</template>

<script>
import Header from "./Header";
import Aside from "./Aside";
export default {
  name: "Home",
  data() {
    return {
      
    };
  },
  mounted() {
    console.log(this);
  },
  components: {
    Header,
    Aside
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped lang="less">
@import "../../static/less/common.less";
.el-container {
  height: 100%;
}
.el-header,
.el-footer {
  background-color: @base;
  color: #fff;
  padding: 0;
}

.el-aside {
  background-color: @active;
  color: #fff;
}

body > .el-container {
  margin-bottom: 40px;
}
</style>
